﻿using System;

namespace FindPrime
{
    class Program
    {
        static void Main(string[] args)
        {
            bool[] myArray = new bool[101];
            for (int i = 0; i < myArray.Length; i++)
                myArray[i] = true;
            for (int i = 2; i < myArray.Length; i++)
            {
                for (int j = i * i; j < myArray.Length; j += i)
                {
                    myArray[j] = false;
                }
            }
            for (int i = 2; i < myArray.Length; i++)
            {
                if (myArray[i])
                    Console.WriteLine(i);
            }
        }
    }
}
